package com.mars.boss.controller;


import com.mars.boss.entity.Role;
import com.mars.boss.service.impl.RoleServiceImpl;
import com.mars.common.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 角色 前端控制器
 * </p>
 *
 * @author mars
 * @since 2021-04-21
 */
@RestController
@RequestMapping("/test/role")
public class RoleController1 {
    @Autowired
    private RoleServiceImpl roleService;
     @RequestMapping("/list")
    public R getRole(){

         List<Role> list = roleService.list();
         return R.data(list);
    }

}

